package handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import packet.impl.MessageResponseAbstractPacket;

import java.util.Date;

/**
 * @author Admin
 */
public class MessageResponseHandler extends SimpleChannelInboundHandler<MessageResponseAbstractPacket> {
  @Override
  protected void channelRead0(ChannelHandlerContext ctx, MessageResponseAbstractPacket messageResponsePacket) {
    System.out.println(new Date() + ": 收到服务端的消息：" + messageResponsePacket.getMessage());
  }
}
